<?php
/*
 * Created on 2011-5-6
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 require_once("server/TaobaoUtils.php");
 
 $taobao = new TaobaoUtils;
 $rsp = $taobao->getItems($_GET["key"], $_GET["page_no"], $_GET["page_size"]);
 for ($i = 0; $i < 12; $i++)
 {
 	echo '<a href="'. $rsp->taobaoke_items->taobaoke_item[$i]->click_url  . '" target="_blank"><div class="item"><img src="'. $rsp->taobaoke_items->taobaoke_item[$i]->pic_url . '_160x160.jpg"/></div></a>';
 }
// print_r($rsp);
?>
